from rest_framework import serializers

from user.models import User

class UserInfoSerializer(serializers.ModelSerializer):
	
	avatar = serializers.CharField(source="avatar_url", read_only=True)
	createTime = serializers.CharField(source="create_time", read_only=True)
	updateTime = serializers.CharField(source="update_time", read_only=True)
	
	class Meta:
		model = User
		exclude = ("password", "create_time", "update_time",)
	
		
